require "pubenum"

--桌子的状态
ETableState = {
	TABLE_STATE_UNKNOW = 0,
	TABLE_STATE_WAIT_ALL_READY = 1,	-- 等待所有玩家准备
	TABLE_STATE_GAME_START = 2,		-- 游戏开始状态
	TABLE_STATE_WAIT = 3,			-- 非玩家操作中
	TABLE_STATE_ACTION = 4,			-- 玩家操作中
	TABLE_STATE_COMPARE = 5,		-- 比牌
	TABLE_STATE_GAME_OVER = 6,		-- 游戏结束
}

--座位状态
ESeatState = {
	SEAT_STATE_UNKNOW = 0,
	SEAT_STATE_NO_PLAYER = 1,  	-- 没有玩家
	SEAT_STATE_WAIT_READY = 2,  -- 等待玩家准备
	SEAT_STATE_WAIT_START = 3, 	-- 等待开局
	SEAT_STATE_STANDUP = 4,    	-- 站起
	SEAT_STATE_PLAYING = 5,   	-- 正在游戏中
	SEAT_STATE_WATCHING = 6, 	-- 中途进入的直接观战
	SEAT_STATE_FOLD = 7,		-- 弃牌
	SEAT_STATE_ALL_IN = 8,		-- all in
}

--玩家操作类型
EActionType = {
	ACTION_TYPE_UNKNOW = 0,
	ACTION_TYPE_BLIND_BET1 = 1,	-- 小盲注
	ACTION_TYPE_BLIND_BET2 = 2,	-- 大盲注
	ACTION_TYPE_BET = 3,		-- 下注
	ACTION_TYPE_CALL = 4,		-- 跟注
	ACTION_TYPE_RAISE = 5,		-- 加注
	ACTION_TYPE_ALL_IN = 6,		-- 全下
	ACTION_TYPE_CHECK = 7,		-- 让牌
	ACTION_TYPE_FOLD = 8,		-- 弃牌
}

--房间类型
ERoomType = {
	ROOM_TYPE_UNKNOW = 0,
	ROOM_TYPE_DIAMOND = 1, 		-- 自建钻石
	ROOM_TYPE_COIN   = 3,		-- 金币桌
}

--游戏类型
EGameType = {
	GAME_TYPE_UNKNOW = 0,		-- 未知
	GAME_TYPE_NORMAL = 1, 		-- 普通
}

--匹配场类型
EMatchType ={
    MATCH_TYPE_PRIMARY = 1,     -- 初级场
    MATCH_TYPE_MEDIUM = 2,      -- 中级场
    MATCH_TYPE_ADVANCE = 3,     -- 高级场
}

EGameRoomType = {
    ROOM_TYPE_ZIJIAN_ZUANSI = 1,        -- 自建钻石房
    ROOM_TYPE_MATCH_ZUANSHI = 2,        -- 匹配钻石房
    ROOM_TYPE_MATCH_COIN = 3,           -- 匹配金豆房
    ROOM_TYPE_ZIJIAN_COIN = 4,          -- 自建金豆房
}